import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import persons from '../modules/demo/persons'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
    },
    {
      path: '/demo/persons',
      name: 'demo',
      meta: {title: '人员列表', type: 'demo'},
      component: persons,
    }
  ]
})
